using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools.__un
{
    /// <summary>
    /// <para>Apply Relative Mainline Layout</para>
    /// <para>Apply the relative mainline layout to a diagram</para>
    /// <para>将相对主线布局应用于逻辑示意图</para>
    /// </summary>    
    [DisplayName("Apply Relative Mainline Layout")]
    public class ApplyRelativeMainlineLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ApplyRelativeMainlineLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_line_attribute">
        /// <para>Line Attribute</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ApplyRelativeMainlineLayout(object _in_network_diagram_layer, object _line_attribute)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
            this._line_attribute = _line_attribute;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Apply Relative Mainline Layout";

        public override string CallName => "un.ApplyRelativeMainlineLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _line_attribute, _mainline_direction.GetGPValue(), _offset_between_branches, _breakpoint_angle, _type_attribute, _mainline_values, _branch_values, _excluded_values, _is_compressing.GetGPValue(), _compression_ratio, _minimal_distance, _alignment_attribute, _initial_distances.GetGPValue(), _length_attribute, _out_network_diagram_layer, _run_async.GetGPValue()];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Line Attribute</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Line Attribute")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _line_attribute { get; set; }


        /// <summary>
        /// <para>Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _mainline_direction_value _mainline_direction { get; set; } = _mainline_direction_value._FROM_LEFT_TO_RIGHT;

        public enum _mainline_direction_value
        {
            /// <summary>
            /// <para>FROM_LEFT_TO_RIGHT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_LEFT_TO_RIGHT")]
            [GPEnumValue("FROM_LEFT_TO_RIGHT")]
            _FROM_LEFT_TO_RIGHT,

            /// <summary>
            /// <para>FROM_TOP_TO_BOTTOM</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_TOP_TO_BOTTOM")]
            [GPEnumValue("FROM_TOP_TO_BOTTOM")]
            _FROM_TOP_TO_BOTTOM,

        }

        /// <summary>
        /// <para>Offset Between Branches</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset Between Branches")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _offset_between_branches { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Break Point angle (in degree)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Break Point angle (in degree)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _breakpoint_angle { get; set; } = 45;


        /// <summary>
        /// <para>Type Attribute</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Type Attribute")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _type_attribute { get; set; } = null;


        /// <summary>
        /// <para>Mainline Values</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Mainline Values")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _mainline_values { get; set; } = null;


        /// <summary>
        /// <para>Branch Values</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Branch Values")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _branch_values { get; set; } = null;


        /// <summary>
        /// <para>Excluded Values</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Excluded Values")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _excluded_values { get; set; } = null;


        /// <summary>
        /// <para>Compression along the direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Compression along the direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_compressing_value _is_compressing { get; set; } = _is_compressing_value._false;

        public enum _is_compressing_value
        {
            /// <summary>
            /// <para>USE_COMPRESSION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("USE_COMPRESSION")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_USE_COMPRESSION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_USE_COMPRESSION")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Ratio (%)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ratio (%)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _compression_ratio { get; set; } = 0;


        /// <summary>
        /// <para>Minimal Distance</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimal Distance")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _minimal_distance { get; set; } = "0 Unknown";


        /// <summary>
        /// <para>Alignment Attribute</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Alignment Attribute")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _alignment_attribute { get; set; } = null;


        /// <summary>
        /// <para>Initial Distances</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Initial Distances")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _initial_distances_value _initial_distances { get; set; } = _initial_distances_value._FROM_CURRENT_EDGE_GEOMETRY;

        public enum _initial_distances_value
        {
            /// <summary>
            /// <para>FROM_CURRENT_EDGE_GEOMETRY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_CURRENT_EDGE_GEOMETRY")]
            [GPEnumValue("FROM_CURRENT_EDGE_GEOMETRY")]
            _FROM_CURRENT_EDGE_GEOMETRY,

            /// <summary>
            /// <para>FROM_ATTRIBUTE_EDGE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_ATTRIBUTE_EDGE")]
            [GPEnumValue("FROM_ATTRIBUTE_EDGE")]
            _FROM_ATTRIBUTE_EDGE,

        }

        /// <summary>
        /// <para>Length Attribute</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Length Attribute")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _length_attribute { get; set; } = null;


        /// <summary>
        /// <para>Output Network Diagram</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network Diagram")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Run in asynchronous mode on the server</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Run in asynchronous mode on the server")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _run_async_value _run_async { get; set; } = _run_async_value._false;

        public enum _run_async_value
        {
            /// <summary>
            /// <para>RUN_ASYNCHRONOUSLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RUN_ASYNCHRONOUSLY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>RUN_SYNCHRONOUSLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RUN_SYNCHRONOUSLY")]
            [GPEnumValue("false")]
            _false,

        }

        public ApplyRelativeMainlineLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}